<template>
    <div>
        <div class="typ">
            <div class="w1">
                <div class="w1_1" v-for="item,i in the_data1" :key="i">
                    <div class="im1">
                        <img :src="item.img" alt="">
                    </div>
                    <div class="im2">
                        <span class="ti1">{{item.title}}</span>
                        <div class="im2_1">
                            <img :src="item.head" alt="">
                            <span class="ti2">{{item.name}}</span>
                            <i class="el-icon-thumb"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="w2">
                <div class="w2_2">
                    <div class="w2_2_1">
                        <div class="uia1">
                            <img src="https://img-static.mihoyo.com/new_qrcode/qrcode_ys.png" width="100px" alt="">
                            <div class="uia1_1">
                                <span class="ti1">扫码下载米游社App</span>
                                <span class="ti2">了解提瓦特最新资讯</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="w2_3">
                    <div class="w2_3_index">
                        <div class="una1">
                            <span>{{the_data3}}</span>
                        </div>
                        <div class="una2">
                            <span>更多</span>
                        </div>
                    </div>
                    <div class="w2_3_index2" v-for="item,i in the_data2" :key="i">
                        <div class="ttt1">
                            <img class="img1" :src="item.img" alt="">
                        </div>
                        <div class="ttt2">
                            <span class="ti1">{{item.title}}</span>
                            <div class="ttt2_1">
                                <img class="img2" :src="item.head" alt="">
                                <span class="ti2">{{item.name}}</span>
                            </div>
                            <div class="ttt2_2">
                                {{item.Ranking}}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="w2_5">
                    <div class="w2_5_index">
                        <div class="una1">
                            <span>热门话题</span>
                        </div>
                        <div class="una2">
                            <span>更多</span>
                        </div>
                    </div>
                    <div class="w2_5_index2">
                        <div class="tiing" v-for="item,i in tuia" :key="i">
                            <img :src="item.img" alt="">
                            <span>{{item.na}}</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['the_data1', 'the_data2', 'the_data3'],
    data() {
        return {
            tuia: [
                {img: 'https://upload-bbs.mihoyo.com/upload/2022/04/29/7078d15984ddbbb8aaa6280a9cb86407_5699639779014808393.gif?x-oss-process=image/auto-orient,0/interlace,1/format,jpg', na: '假日冒险？触发！'},
                {img: 'https://upload-bbs.mihoyo.com/upload/2022/04/29/7078d15984ddbbb8aaa6280a9cb86407_5699639779014808393.gif?x-oss-process=image/auto-orient,0/interlace,1/format,jpg', na: '假日冒险？触发！'},
                {img: 'https://upload-bbs.mihoyo.com/upload/2022/04/29/7078d15984ddbbb8aaa6280a9cb86407_5699639779014808393.gif?x-oss-process=image/auto-orient,0/interlace,1/format,jpg', na: '假日冒险？触发！'},
            ],
        }
    }
}
</script>

<style lang="less" scoped>
.typ {
    display: flex;
    justify-content: center;
    .w1 {
        // border: 1px solid red;
        height: 100%;
        width: 37%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: -23px;
        .w1_1 {
            // border: 1px solid red;
            margin-top: 23px;
            width: 220px;
            height: 220px;
            background-color: white;
            // position: absolute;
            .im1 {
                overflow: hidden;
                img:hover {
                    // max-width: 400px;
                    transform: scale(1.2);
                }
                img {
                    // max-width: 220px;
                    // max-height: 120px;
                    object-fit: cover;
                    width: 100%;
                    height: 150px;
                    border-radius: 5px 5px 0px 0px;
                    cursor: pointer;
                    transition: all 0.6s;
                }
            }
            .im2 {
                .ti1:hover {
                    color: #00c3ff;
                }
                .ti1 {
                    font-size: 10px;
                    padding: 5px;
                    cursor: pointer;
                    // border: 1px solid red;
                }
                .im2_1 {
                    // border: 1px solid red;
                    cursor: pointer;
                    margin-top: 3px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 5px;
                    img {
                        max-width: 30px;
                        border-radius: 50%;
                    }
                    .ti2 {
                        // border: 1px solid red;
                        font-size: 12px;
                        color: rgb(139, 139, 139);
                        margin-right: 76px;
                    }
                }
            }
        }
    }
    .w2 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 260px;
        // background-color: red;
        overflow: hidden;
        
        .w2_2 {
            background-color: white;
            // margin-top: 22px;
            // border: 1px solid red;
            width: 95%;
            height: 130px;
            border-radius: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            cursor: pointer;
            .w2_2_1 {
                // border: 1px solid rgb(0, 0, 0);
                width: 90%;
                .uia1 {
                    display: flex;
                    align-items: center;
                    // border: 1px solid black;
                    .uia1_1 {
                        // border: 1px solid red;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-wrap: wrap;
                        font-size: 13px;
                        .ti1 {
                            color: #00c3ff;
                        }
                        .ti2 {
                            margin-top: 6px;
                            color: #999;
                        }
                    }
                }
            }
        }
        .w2_3 {
            padding-bottom: 30px;
            background-color: white;
            // padding: 10px;
            margin-top: 20px;
            width: 95%;
            margin-left: 6px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            .w2_3_index {
                border-bottom: 1px solid #999;
                width: 90%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 5px;
                .una1 {
                    font-size: 16px;
                    font-weight: bolder;
                }
                .una2 {
                    font-size: 10px;
                    color: #999;
                    cursor: pointer;
                }
            }
            .w2_3_index2 {
                // border: 1px solid red;
                border-bottom: 1px solid #999;
                display: flex;
                justify-content: space-between;
                margin-top: 4px;
                padding: 5px;
                height: 130px;
                cursor: pointer;
                .ttt1 {
                    .img1 {
                        max-width: 80px;
                        position: absolute;
                        clip:rect(0px 90px 120px 0px);
                    }
                }
                .ttt2 {
                    // border: 1px solid black;
                    margin-left: 90px;
                    position: relative;
                    .ti1 {
                        font-size: 15px;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                    }
                    .ti1:hover {
                        color: #00c3ff;
                    }
                    .ttt2_1 {
                        // border: 1px solid red;
                        margin-top: 5px;
                        display: flex;
                        align-items: center;
                        .img2 {
                            max-width: 30px;
                        }
                        .ti2 {
                            color: rgb(160, 159, 159);
                            margin-left: 4px;
                            font-size: 15px;
                        }
                    }
                    .ttt2_2 {
                        position: absolute;
                        font-size: 28px;
                        color: red;
                        font-weight: bolder;
                        bottom: 0;
                        right: 0;
                    }
                }
            }
        }
        .w2_5 {
            padding-bottom: 30px;
            background-color: white;
            // padding: 10px;
            margin-top: 20px;
            width: 95%;
            margin-left: 6px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            .w2_5_index {
                border-bottom: 1px solid #999;
                width: 90%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 5px;
                .una1 {
                    font-size: 16px;
                    font-weight: bolder;
                }
                .una2 {
                    font-size: 10px;
                    color: #999;
                    cursor: pointer;
                }
            }
            .w2_5_index2 {
                // border: 1px solid red;
                .tiing {
                    // border: 1px solid red;
                    cursor: pointer;
                    margin-top: 8px;
                    width: 230px;
                    display: flex;
                    // justify-content: center;
                    align-items: center;
                    img {
                        max-width: 50px;
                        border-radius: 4px;
                    }
                    span {
                        margin-left: 10px;
                    }
                    span:hover {
                        color: #00c3ff;
                    }
                }
            }
        }
    }
}
</style>